<script setup lang="ts">
import { ref } from 'vue';

    let userName=ref('AAA')
    let userSalary=ref('99999')

    defineExpose({userName,userSalary})
</script>


<template>
    <div>
        name:<input type="text" v-model="userName"/>
        salary:<input type="text" v-model="userSalary"/>
    </div>
</template>